package com.xbongbong.pro.domain.entity;

import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SaasProRelationEntity {

    /**
     * id
     */
    Long id;

    /**
     * 公司id
     */
    String corpid;

    /**
     * pro表名
     */
    String tableName;

    /**
     * saas中的业务id
     */
    Integer saasId;

    /**
     * pro中的业务id
     */
    Long proId;

    /**
     * 添加时间
     */
    Long addTime;

    public SaasProRelationEntity(){

    }

    public SaasProRelationEntity(String corpid, String tableName, Integer saasId, Long proId){
        this.corpid = corpid;
        this.tableName = tableName;
        this.saasId = saasId;
        this.proId = proId;
        this.addTime = DateTimeUtil.getInt();
    }
}
